import 'package:xin_he/generated/json/base/json_field.dart';
import 'package:xin_he/generated/json/xin_he_ocr_model_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class XinHeOcrModelEntity {
	String? idcard;
	String? sex;
	String? name;
	String? msg;
	int? code;
	String? address;
	String? race;
	String? birthday;
	@JSONField(name: "ret_code")
	int? retCode;

	XinHeOcrModelEntity();

	factory XinHeOcrModelEntity.fromJson(Map<String, dynamic> json) => $XinHeOcrModelEntityFromJson(json);

	Map<String, dynamic> toJson() => $XinHeOcrModelEntityToJson(this);

	XinHeOcrModelEntity copyWith({String? idcard, String? sex, String? name, String? msg, int? code, String? address, String? race, String? birthday, int? retCode}) {
		return XinHeOcrModelEntity()
			..idcard= idcard ?? this.idcard
			..sex= sex ?? this.sex
			..name= name ?? this.name
			..msg= msg ?? this.msg
			..code= code ?? this.code
			..address= address ?? this.address
			..race= race ?? this.race
			..birthday= birthday ?? this.birthday
			..retCode= retCode ?? this.retCode;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}